package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import javax.validation.constraints.NotNull;

import static org.jsola.core.example.BaseExample.E_ID;
import static org.jsola.core.example.BaseExample.M_ID_NOT_NULL;
import static org.jsola.core.example.BaseExample.N_ID;
import static org.jsola.hr.example.FacilitatorExample.E_ADMIN_NAME;
import static org.jsola.hr.example.FacilitatorExample.E_ADMIN_USER_ID;
import static org.jsola.hr.example.FacilitatorExample.E_CITY;
import static org.jsola.hr.example.FacilitatorExample.E_CONTACT_NUMBER;
import static org.jsola.hr.example.FacilitatorExample.E_NAME;
import static org.jsola.hr.example.FacilitatorExample.M_ADMIN_NAME_MAX;
import static org.jsola.hr.example.FacilitatorExample.M_ADMIN_NAME_NOT_NULL;
import static org.jsola.hr.example.FacilitatorExample.M_ADMIN_USER_ID_MAX;
import static org.jsola.hr.example.FacilitatorExample.M_ADMIN_USER_ID_NOT_NULL;
import static org.jsola.hr.example.FacilitatorExample.M_CITY_MAX;
import static org.jsola.hr.example.FacilitatorExample.M_CITY_NOT_NULL;
import static org.jsola.hr.example.FacilitatorExample.M_CONTACT_NUMBER_MAX;
import static org.jsola.hr.example.FacilitatorExample.M_CONTACT_NUMBER_NOT_NULL;
import static org.jsola.hr.example.FacilitatorExample.M_NAME_MAX;
import static org.jsola.hr.example.FacilitatorExample.M_NAME_NOT_NULL;
import static org.jsola.hr.example.FacilitatorExample.N_ADMIN_NAME;
import static org.jsola.hr.example.FacilitatorExample.N_ADMIN_USER_ID;
import static org.jsola.hr.example.FacilitatorExample.N_CITY;
import static org.jsola.hr.example.FacilitatorExample.N_CONTACT_NUMBER;
import static org.jsola.hr.example.FacilitatorExample.N_NAME;

/**
 * 卫人云-服务商
 *
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "修改【卫人云-服务商】的参数")
@Data
public class FacilitatorUpdateDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_ID, example = E_ID, required = true)
    @NotNull(message = M_ID_NOT_NULL)
    private String id;

    @ApiModelProperty(notes = N_NAME, example = E_NAME, required = true)
    @NotNull(message = M_NAME_NOT_NULL)
    @Length(max = 50, message = M_NAME_MAX)
    private String name;

    @ApiModelProperty(notes = N_ADMIN_NAME, example = E_ADMIN_NAME, required = true)
    @NotNull(message = M_ADMIN_NAME_NOT_NULL)
    @Length(max = 50, message = M_ADMIN_NAME_MAX)
    private String adminName;

    @ApiModelProperty(notes = N_ADMIN_USER_ID, example = E_ADMIN_USER_ID, required = true)
    @NotNull(message = M_ADMIN_USER_ID_NOT_NULL)
    @Length(max = 32, message = M_ADMIN_USER_ID_MAX)
    private String adminUserId;

    @ApiModelProperty(notes = N_CITY, example = E_CITY, required = true)
    @NotNull(message = M_CITY_NOT_NULL)
    @Length(max = 50, message = M_CITY_MAX)
    private String city;

    @ApiModelProperty(notes = N_CONTACT_NUMBER, example = E_CONTACT_NUMBER, required = true)
    @NotNull(message = M_CONTACT_NUMBER_NOT_NULL)
    @Length(max = 11, message = M_CONTACT_NUMBER_MAX)
    private String contactNumber;


}

